#ifndef _645_datalink_HPP
#define _645_datalink_HPP

#include "stm8l15x_it.h"


struct ST645DATALINK
{
  u8 cHeadstart;		 
  u8 csAddr[6];
  u8 cHeadend;
  u8 cOpercoe;
  u8 cLen;
};
 
struct 		STRESULT 
{
		u8 		prev[2];
		u8 		cHeadstart; 
	  u8 		csAddr[6];
		u8 		cHeadend;
};

#define  _cnTrxoffset 	   (int)&(((struct STRESULT  *)0)->csAddr)
#define	 _cnStartOffset    (int)&(((struct STRESULT  *)0)->cHeadstart)

u8 Check_TRxNum (void) ;
void ComApp (void); 
#endif
